]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspace: Continue overlay idle hide timeout when pointing at close button
authorJonas Dreßler <verdre@v0yd.nl>
Tue, 12 Feb 2019 12:04:55 +0000 (13:04 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 18 Sep 2019 15:56:26 +0000 (15:56 +0000)
While it makes sense to remove the timeout in every other case, restart it
if the pointer is hovering over the close button to make sure the overlay
will be hidden afterwards.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/683

js/ui/workspace.js

index f09637b89bfc65003df1edde8779af9d6ddabb4d..72707173c09eff24bf383bfa27e56fd7c0ff80c3 100644 (file)
@@ -693,12 +693,13 @@ var WindowOverlay = class {
     }
 
     _idleHideOverlay() {
-        this._idleHideOverlayId = 0;
+        if (this.closeButton['has-pointer'])
+            return GLib.SOURCE_CONTINUE;
 
-        if (!this._windowClone['has-pointer'] &&
-            !this.closeButton['has-pointer'])
+        if (!this._windowClone['has-pointer'])
             this._animateInvisible();
 
+        this._idleHideOverlayId = 0;
         return GLib.SOURCE_REMOVE;
     }